package com.winbomb.simulife.impl.operations;

import com.winbomb.simulife.World;
import com.winbomb.simulife.base.IChoice;
import com.winbomb.simulife.game.screens.FindJobScreen;
import com.winbomb.simulife.impl.BaseOperation;
import com.winbomb.simulife.impl.choices.CancelChoice;
import com.winbomb.simulife.impl.choices.ChangeScreenChoice;

public class FindJobOpt extends BaseOperation {

	public FindJobOpt(World world) {
		super(world);
	}

	@Override
	public IChoice[] getChoices() {
		IChoice[] choices = new IChoice[2];
		choices[0] = new ChangeScreenChoice("找工作", FindJobScreen.class);
		choices[1] = new CancelChoice("放弃");

		return choices;
	}

	@Override
	public String getDescription() {
		return "找工作";
	}

	@Override
	public boolean isEnable() {
		// 成年后（>= 18岁），身份为无业就可以开启找工作的操作
		// return (master.getAgeYear() >= 18 && master.getIdentity().hasJob());

		return master.getJob() == null;
	}

}
